package com.etrans.web.gps.util;

/**
 * 时间格式化工具
 * @author 谭航
 *
 */
public class TimeFormatUtils {
	
	/**
	 * 
	 * @param ms 毫秒
	 * @return
	 */
	public static String getTimeFormat(int ms){
		 int hour =(int)ms/3600000;  
	     int minute =(int)(ms-hour*3600000)/60000;  
	     int second = (int)(ms-hour*3600000-minute*60000)/1000;  
		 int milliSecond=ms-hour*3600000-minute*60000-second*1000;		 
		 return hour+"小时"+minute+"分"+second+"秒"+milliSecond+"毫秒";
	}	  
}
